﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WestJourney
{
    public partial class TestForm : Form
    {
        public TestForm()
        {
            InitializeComponent();
            this.userDisplay1.MoveFinished += new EventHandler<Misc.UserFinishedEventArgs>(userDisplay1_MoveFinished);
        }

        void userDisplay1_MoveFinished(object sender, Misc.UserFinishedEventArgs e)
        {
            //throw new NotImplementedException();
            string information = string.Format("{0}最先完成", this.userDisplay1.UserName);
            MessageBox.Show(information);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            userDisplay1.MoveStep(5);
        }
    }
}
